package org.jeecg.modules.business.takestockplan.entity.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 盘点分析导出实体
 * @Author: jeecg-boot
 * @Date:   2023-12-19
 * @Version: V1.0
 */
@Data
public class TakeStockPlanExecuteAnalysisExport {

	/**盘点任务id*/
	@ApiModelProperty(value = "盘点任务id")
    private String wmsTakeStockPlanId;
	/**盘点作业编号*/
	@Excel(name = "盘点作业编号", width = 15)
	@ApiModelProperty(value = "盘点作业编号")
	private String code;
	/**计划盘点日期*/
	@Excel(name = "计划盘点日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "计划盘点日期")
	private Date planTime;
	/**盘点日期*/
	@Excel(name = "盘点日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "盘点日期")
	private Date executeDate;
	/**盘点任务编号*/
	@Excel(name = "盘点任务编号", width = 15)
	@ApiModelProperty(value = "盘点任务编号")
	private String takeStockPlanCode;
	/**盘点任务名称*/
	@Excel(name = "盘点任务名称", width = 15)
	@ApiModelProperty(value = "盘点任务名称")
    private String takeStockPlanName;
	/**盘点方式*/
	@Dict(dicCode = "wms_take_stock_method")
	@ApiModelProperty(value = "盘点方式")
	private String runType;
	/**仓库id*/
	@Excel(name = "仓库", width = 15, dictTable = "wms_basic_warehouse", dicCode = "id", dicText = "name")
	@Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "仓库id")
	private String wmsBasicWarehouse;
	/**库区id*/
	@Excel(name = "库区", width = 15, dictTable = "wms_basic_warehouse_area", dicCode = "id", dicText = "name")
	@Dict(dictTable = "wms_basic_warehouse_area", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "库区id")
	private String wmsBasicWarehouseArea;
	/**盘点物料分类id*/
	@Excel(name = "盘点物料分类", width = 15, dictTable = "wms_basic_material_type", dicCode = "id", dicText = "name")
	@Dict(dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "盘点物料分类id")
	private String materialTypeId;
	/**盘点物料id*/
	@Excel(name = "盘点物料编码", width = 15, dictTable = "wms_basic_material", dicCode = "id", dicText = "code")
	@Dict(dictTable = "wms_basic_material", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "盘点物料id")
	private String materialId;
	/**客户id*/
	@Dict(dictTable = "wms_basic_customer", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "客户id")
	private String customerId;
	/**供应商id*/
	@Dict(dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "供应商id")
	private String supplierId;
	/**仓库组id*/
	@Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "仓库组id")
	private String wmsBasicWarehouseGroupId;
	/**仓库组名称*/
	@ApiModelProperty(value = "仓库组名称")
	private String wmsBasicWarehouseGroupName;
	/**仓管员id*/
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "仓管员id")
	private String userId;
	/**货主类型*/
	@Excel(name = "货主类型", width = 15, dicCode = "wms_owner_of_cargo")
	@Dict(dicCode = "wms_owner_of_cargo")
	@ApiModelProperty(value = "货主类型")
	private String ownerType;
	/**货主*/
	@Excel(name = "货主", width = 15)
	@ApiModelProperty(value = "货主")
	private String owner;
	/**盘盈单编号*/
	@ApiModelProperty(value = "盘盈单编号")
	private String inventoryProfitCode;
	/**盘亏单编号*/
	@ApiModelProperty(value = "盘亏单编号")
	private String inventoryLossCode;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15, dicCode = "take_stock_plan_status")
	@ApiModelProperty(value = "单据状态")
	private String documentStatus;
	/**生成盘盈或盘亏单*/
	@ApiModelProperty(value = "生成盘盈或盘亏单")
	@Dict(dicCode = "yn")
	private String generateFlag;
	/**单据类型*/
	@ApiModelProperty(value = "单据类型")
	@Dict(dicCode = "take_job")
	private String documentType;

	/**盘点范围类型*/
	@Dict(dicCode = "take_stock_range")
	@ApiModelProperty(value = "盘点范围类型")
	private String rangeType;

	/**盘点范围类型名称*/
	@ApiModelProperty(value = "盘点范围类型名称")
	private String rangeTypeName;

	/**盘点类型*/
	@Dict(dicCode = "take_stock_type")
	@ApiModelProperty(value = "盘点类型")
	private String type;

	/**盘点类型名称*/
	@ApiModelProperty(value = "盘点类型名称")
	private String typeName;

	/**盘点差异处理单id*/
	@ApiModelProperty(value = "盘点差异处理单id")
	private String differenceId;

	/**盘点作业id*/
	@ApiModelProperty(value = "盘点作业id")
	private String takeStockPlanExecuteId;

	/**
	 * 客户单号
	 */
	@ApiModelProperty(value = "客户单号")
	private String customerOrderNumber;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;

	/**组织*/
	@Excel(name = "组织", width = 15)
	@ApiModelProperty(value = "组织")
	private String organization;

	@ApiModelProperty(value = "盘点分析-物料")
	@ExcelCollection(name="盘点分析-物料")
	private List<TakeStockPlanExecuteMaterialAnalysisExport> list;
}
